<?
if(empty($_REQUEST['id'])){
	header('Location:'.$_SERVER['HTTP_REFERER']);
	exit;
}
include("common/header.html");
include("../_made/le.cfg.php");
include("common/left.html");
include("common/page.php");

$ac=$GLOBALS['_ac'];
$pw=$GLOBALS['_pw'];
$s = new SoapClient(null,array("location" => "http://localhost/open/openService/pft_insideMX.php","uri" => "www.16u.com?ac_16u=$ac|pw_16u=$pw|auth_16u=true"));
if(!$_SESSION['memberID']){exit("<script>window.location='dlogin.html'</script>");}
$currentPage=$_REQUEST["currentPage"]?$_REQUEST["currentPage"]:1;
$pageSize=$_REQUEST['pageSize']?$_REQUEST["pageSize"]:10;
$txt=$_REQUEST['txt'];
$tpl=$b=$a=$a_sort=array();
if($txt && $txt!="请输入员工名称\账号\手机"){
	$tj=" and (instr(dname,'".$txt."') or account='".$txt."' or mobile='".$txt."')";
}
$ltitle="员工列表";
$sel1="select m.id,dname,account,mobile,m.status,lasttime ";
$sel2="select count(*) total ";
$sel="from pft_member_relationship r left join pft_member m on m.id=son_id where m.status in (0,1) ".$tj." and r.status=0 and parent_id=".$_SESSION['sid']." and ship_type=1 and son_id_type=2".($_SESSION['dtype']==6?" and m.id<>".$_SESSION['memberID']:"");
$GLOBALS['le']->query($sel1.$sel." limit ".($currentPage-1)*$pageSize.",".$pageSize);
while($row=$GLOBALS['le']->fetch_assoc()){
	$row['zt']=$row['status']==0?"正常":"禁用";
	$row['cz']=$row['status']==0?"禁用":"启用";
	$a_sort[]=$row;
}
$GLOBALS['le']->query($sel2.$sel);
$GLOBALS['le']->fetch_assoc();
$total=$GLOBALS['le']->f("total");
$txt=$txt?$txt:"请输入员工名称\账号\手机";
?>
<title>重设员工密码</title>
<link rel="stylesheet" type="text/css" href="css/password.css"/>
<script type="text/javascript" src="js/md5.js"></script>
<script type="text/javascript" src="js/chPs.js"></script>
<div class="r_content">
	<h3 class="mc_title">
		<span class="mctit_1"><span class="mctit_2">重设员工密码</span></span>
	</h3>

<!--<div class="cengk">
		<span>账户安全度：</span>
		<div class="rzq1 rzq3">
			<div class="ruo">弱</div>
			<div class="zhong">中</div>
			<div class="qiang">强</div>
		</div>
		<span class="red">互联网账户存在被盗风险，建议您定期更改密码以保护账户安全</span>
	</div>-->

	<div class="password">
	<iframe name="ifr" style="display:none;"></iframe>
	<form action="operPass.php" method="post" target="ifr" name="form">
		<input type="hidden" name="mid" value="<?=$_REQUEST['id']?>"/> 
		<p>
			<b class="tit">新密码：</b>
			<span class="con1"><input type="password" class="inpcon" name="newpd" onkeyup="chPs(this);" id="ch_nps"/><input type="hidden" name="nps" id="nps" /></span>
			<span class="con2" id="ptxt">请输入6-20位字母和数字组合的的密码</span>
		</p>
		<p class="lh21">
			<b class="tit"></b>
			<span id="plvl" class="con1"><!--四个等级的class为    1没有： con1 ; 2弱： con1 qia1 ; 3中： con1 qia2 ; 4强： con1 qia3 ;-->
				<span class="qd1">弱</span>
				<span class="qd2">中</span>
				<span class="qd3">强</span>
			</span>
		</p>
		<p>
			<b class="tit">确认密码：</b>
			<span class="con1"><input type="password" class="inpcon" name="confirmpd" onchange="douPs();" id="ch_dps" /><input type="hidden" name="dps" id="dps" /></span>
			<span class="con2">再次确认您的新密码</span>
		</p>
		<p><input type="button" class="ok" onclick="subOper()" value="确认修改" /></p>
	</form>
	</div>
</div>
<?
include("common/footer.html");
?>